﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Collections.TreeCollections
{
    public interface INonLeaf
    {
        /// <summary>
        /// return the child based on its id
        /// </summary>
        /// <param name="index"></param>
        /// <returns></returns>
        INonRoot this[TreeNodeIdentify index] { get; }
        INonRoot[] Children { get; }
        void AddChild(INonRoot child);
        bool RemoveChild(INonRoot child);
        bool ContainChild(INonRoot child);
    }
}
